//
//  STNavigationController.m
//  ShaBaoOnLine
//
//  Created by huang yong on 16/7/7.
//  Copyright © 2016年 com.ShaBaoOnline.www. All rights reserved.
//

#import "STNavigationController.h"

@interface STNavigationController ()

@end

@implementation STNavigationController

+ (void)load{
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    dict[NSFontAttributeName] = [UIFont systemFontOfSize:17];
    dict[NSForegroundColorAttributeName] = [UIColor whiteColor];
    [item setTitleTextAttributes:dict forState:UIControlStateNormal];
    
    UINavigationBar *bar = [UINavigationBar appearance];
    [bar setBackgroundImage:[UIImage imageNamed:@"navigationbarBackground"] forBarMetrics:UIBarMetricsDefault];
    NSMutableDictionary *dictBar = [NSMutableDictionary dictionaryWithCapacity:1];
    dictBar[NSFontAttributeName] = [UIFont systemFontOfSize:20];
    [bar setTitleTextAttributes:dictBar];
    
    [UIBarButtonItem appearance].tintColor = [UIColor whiteColor];
    bar.barStyle = UIBarStyleBlack;
    bar.translucent = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
}

//- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
//    [super pushViewController:viewController animated:animated];
////    
//    if (self.viewControllers.count > 1) {
//        viewController.hidesBottomBarWhenPushed = YES;
//    }
////    if (self.viewControllers.count > 0) {
////        viewController.hidesBottomBarWhenPushed = YES;
////    }
////    viewController.hidesBottomBarWhenPushed= YES;
////    return [super pushViewController:viewController animated:animated];
//}

@end
